package main

import (
	"encoding/json"
	"fmt"
	"github.com/valyala/fasthttp"
)

// 获取post的请求json数据
func jsonTestPost(ctx *fasthttp.RequestCtx) {

	body:=ctx.PostBody()


	temp:=map[string]interface{}{}
	err:=json.Unmarshal(body,&temp)
	if err!=nil{
		fmt.Println("解析错误：",err)
	}

	fmt.Println(temp)
	fmt.Fprint(ctx, temp)

}